$OpenBSD: patch-libgcc_libgcc2_c,v 1.1.1.1 2013/04/08 08:20:25 pascal Exp $
--- libgcc/libgcc2.c.orig	Mon Feb  4 20:06:20 2013
+++ libgcc/libgcc2.c	Tue Mar  5 19:45:42 2013
@@ -2117,6 +2117,7 @@ mprotect (char *addr, int len, int prot)
 #endif /* WINNT && ! __CYGWIN__ */
 
 #ifdef TRANSFER_FROM_TRAMPOLINE
+#include <sys/mman.h>
 TRANSFER_FROM_TRAMPOLINE
 #endif
 #endif /* L_trampoline */
